<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%@include file="../userInfo_inc.jsp"%>
<body>
	<h1>增加设计题目</h1>
	<c:url var="action" value="/project/addGraduateProject.html" />
	<form:form modelAttribute="graduateProject" action="${action}">
		题目名称
		<form:input path="title" />
		<!-- 列出title的error -->
		<form:errors path="title"/>

		<br>
		 题目类别
		<form:select path="projectCategory" items="${categories}"
			itemValue="id" itemLabel="description"/>
		<br>
		题目类型
		<form:select path="projectType" items="${types}" itemValue="id"
				itemLabel="description" />
		<br>
		限选专业
		<form:select path="limitedToMajor" items="${majors}" itemValue="id"
				itemLabel="description" />
		<!-- 列出limitedToMajor的error -->
		<form:errors path="limitedToMajor"/>
		<br>
		<input type="submit" value="提交题目" />
	</form:form>

</body>
</html>